﻿using Aliyun.OSS;
using XYS.Core.Models;

namespace XYS.Service.Core.Models
{
    /// <summary>
    /// 生成链接 入参
    /// </summary>
    public class GeneratePresignedUriRequest
    {
        /// <summary>
        /// 用于关联出参用的id
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 生成链接主要参数
        /// </summary>
        public GeneratePresignedUriReq Request { get; set; }
    }

    /// <summary>
    /// 生成链接 出参
    /// </summary>
    public class GeneratePresignedUriResult
    {
        /// <summary>
        /// 用于关联入参用的id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 连接地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 设置访问权限
        /// </summary>
        public CannedAccessControlList? ACL { get; set; }
    }


}
